package com.hst.capacity.domain.model.entity.vehicle;


import com.hst.capacity.domain.model.entity.BaseEntity;
import com.hst.capacity.domain.model.entity.driver.DriverCarEntity;
import com.hst.capacity.domain.model.entity.driver.DriverEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "vm_vehicle")//车辆表
public class VehicleEntity extends BaseEntity {

  @Id
//  @GeneratedValue(generator = "gen_uuid")
//  @GenericGenerator(name = "gen_uuid", strategy = "uuid")
  private String idVehicle;
  private String idFranchisee;
  private Integer idVehicleType;
  private String vehicleName;
  private String plateNumber;
  private String regionCode;
  private Integer tripDistance;
  private Integer limitDay;
  private LocalDateTime buyDate;
  private String employee;
  private Integer commercialType;
  private Integer state;
  private Integer tranFlag;
//  private String idVehicleProfile;

//  @OneToOne(cascade = CascadeType.PERSIST)
//  @JoinColumn(name = "idVehicleProfile",unique = true)
//  private VehicleProfileEntity profileEntity;

//  @OneToOne(mappedBy = "vehicleEntity")
//  private DriverEntity driverEntity;

}
